package pojo;

public class MilkTeaProduct {
    private int product_id;
    private String product_name;
    private double inprice;
    private double price;
    private int stock;
    private String description;

    public MilkTeaProduct(int product_id, String product_name ,double inprice, double price,int stock, String description) {
        this.product_id = product_id;
        this.product_name = product_name;
        this.stock=stock;
        this.inprice=inprice;
        this.price = price;
        this.description=description;
    }

    public MilkTeaProduct(int product_id, String product_name ,double price,int stock, String description) {
        this.product_id = product_id;
        this.product_name = product_name;
        this.stock=stock;
        this.price = price;
        this.description=description;
    }

    // Getter和Setter方法
    public int getProduct_id() {
        return product_id;
    }

    public void setProduct_id(int product_id) {
        this.product_id = product_id;
    }

    public String getProduct_name() {
        return product_name;
    }

    public void setProduct_name(String product_name) {
        this.product_name = product_name;
    }

    public double getInprice() {
        return inprice;
    }

    public void setInprice(double inprice) {
        this.inprice = inprice;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "id=" + product_id +
                ", 名字='" + product_name + '\'' +
                ", 价格=" + price +
                ", 进价=" + inprice +
                ", 库存=" + stock +
                ", 描述='" + description + '\'';
    }
}